﻿using Newtonsoft.Json.Linq;
using System;

namespace LNSServer.DTO.Sensor
{
    public class SensorDTO
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// assetGuid
        /// </summary>
        public string AssetGuid { get; set; }

        /// <summary>
        /// 参数
        /// </summary>
        public JArray Params { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 是否激活数据 1-是 0-否
        /// </summary>
        public int IsActive { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime Created { get; set; } = DateTime.Now;

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime Updated { get; set; } = DateTime.Now;
    }
}
